package com.common.account.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.common.account.entity.UserAndRole;
import com.common.account.mapper.UserAndRoleMapper;
import com.common.account.service.IUserAndRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Set;

/**
 * 服务实现类
 *
 * @author wangguochao
 * @since 2020-01-06
 */
@Service
public class UserAndRoleServiceImpl extends ServiceImpl<UserAndRoleMapper, UserAndRole> implements IUserAndRoleService {
    @Resource
    private UserAndRoleMapper userAndRoleMapper;

    @Override
    public List<UserAndRole> findByUserId(Set<String> ids) {
        return userAndRoleMapper.findByUserId(ids);
    }
}
